package com.bkgy.commom.model;

import lombok.Data;

/**
 * 可按值大小排序对象
 */
@Data
public class Temp2 implements Comparable<Temp2>{
    private String k;
    private int v;

    public Temp2(String k, int v) {
        this.k = k;
        this.v = v;
    }

    @Override
    public int compareTo(Temp2 bar) {
        return this.v > bar.v ? -1 : 1;
    }
}
